/*
 * IMPORTANT-READ THIS: In all config variables
 * EXCEPT smileys you must escape any double quotes
 * with a backslash. ie, "hello" must be encoded as \"hello\"
 */

var FCChatConfig = {
		
	// CONNECTION
	chat_id:"3000_00000000000",
	host:"fastcatsoftware.com",
	port:443,
	policy_port:443,
	
	// VERSION
	version:"1.0.0.0",
	subversion:"0",
	jQuery_stable:"2.1.1",
	
	// GLOBAL CONFIGURATION
	use_global_configuration:true,
	global_configuration_url:"", 

	// Branding
	small_logo:"", //around 16x16
	big_logo:"", //around 80x80
	widget_title:"ChatCenter",
	branding_bar_title:"Yourdomain Chat", // Add branding to toolbar by setting toolbar_items["fullpage:logo", ....
	branding_bar_width:200, 
	startText:"Click here to join our chat.",
	loginText:"Please please sign using your site account.",
	autoGreet:"Wellcome!! ",
	full_page_loading:"BLOGCHAT will load momentarily",
	full_page_login:"Welcome to <span style='color:#a3b3ff'>BLOGCHAT</span>. Sign in to enter.",
	
	// PERMISSIONS
	require_login:false, //new users are required to login to gain access
	guests_can_chat:true, //if false, guests may not send chats in the rooms (they can still observe)
	guests_can_video_chat:true,
	show_guests:false,
	videoconerence_only_in_designated_rooms:false,
	
	// USER INTEGRATION
	user_integration_bridge:"",
	login_redirect:"",
	
	// Align Online, New messages and Friends boxes
	alignment:"auto", // "left","right", or "auto
	
	// LANGUAGE TEMPLATES (templates located in the languages folder)
	language_template:"english.js",
	
    // STYLE TEMPLATES
	templates:{
		alldomains:{
			widget:"widget_white_header.js",
			toolbar:"toolbar_white.js",
			application_window:"chatcenter_white.js"
		}
	},
	
	// QUICK STYLING
	quickstyling:{
		alldomains:{
			widget:{
				background_css:"",
				width_prop_offsets:"0:0:0", /*title : buttons : info box*/
				height_offset:0, 
				text_top_offset:0, 
				height_prop_offsets:"0:0:0", /*title : buttons : info box*/
				width_offset:0, 
				logo_top_offset:0,
				logo_left_offset:0,
				logo_css:"",
				title_css:"",
				full_page_button_css:"",
				off_button_css:"",
				infobox_css:"",
				base_font_css:"",
				title_font_css:"",
				alert_css:"",
				link_css:"",
				link_hover_css:"",
				link_disabled_css:"",
				info_css:""
			},
			toolbar:{
				background_css:"",
				divider_css:"",
				width_prop_offsets:"0:0:0", /*info box : buttons : minimized*/
				text_top_offset:0, 
				off_button_left_offset:0,
				base_font_css:"",
				alert_css:"",
				link_css:"",
				link_hover_css:"",
				link_disabled_css:"",
				info_css:""
			},
			dialog:{
				background_css:"",
				title_background_css:"",
				title_css:"",
				link_css:""
			},
			application_window:{
				frame_color:"",
				background_color:"",
				panel_color:"",
				title_css:""
			},
			full_page_css_obj:{
			}
		}
		
	},
	
	// WIDGET OPTIONS
	absolute_positioning:false,
	control_visible:true,
	control_padding:"0px",
	
	// TOOLBAR OPTIONS
	show_toolbar:true,
	
	// DESKTOP/LAPTOP TOOLBAR OPTIONS
	toolbar_layout:0, // 0 = compact | 1 = full width
	toolbar_position:"bottomright",  // Choices are "topleft" "topright" "bottomleft" and "bottomright"
	toolbar_insert_top_spacer:false,
	toolbar_items:["fullpage:logo","friendscenter"], // List MUST include "friendscenter"
	toolbar_default_display:1, // 1 = normal | 0 = minimized
	custom_buttons:{
		
	},
	
	// MOBILE TOOLBAR OPTIONS
	mobile_toolbar_mode:2, // 0 - simplified, 1 - regular, 2 - auto choose
	
	use_mobile_banner:false,
	mobile_banner_position:"bottomleft", // Choices are bottomleft and topleft
	mobile_banner_scale_factor:1, //resize the banner
	mobile_banner_exclude:/none/i,
	
	use_fixed_toolbar:false,
	fixed_toolbar_position:"bottomleft", // Choices are bottomleft and topleft
	fixed_toolbar_insert_top_spacer:false,
	fixed_toolbar_exclude:/none/i,
	
	use_static_banner:false,
	static_banner_height:35,
	static_banner_offset_top:0,
	static_banner_exclude:/none/i,
	
	// MOBILE TABLET/LARGE DISPLAY OPTIONS
	large_device_toolbar_items:["friendscenter","social_media:social_media"],
	
	// MOBILE PHONE/SMALL DISPLAY OPTIONS
	small_device_toolbar_items:["friendscenter","social_media:social_media"], // List MUST include "friendscenter"
	
	// --END MOBILE BROWSER OPTIONS
	
	// CHATCENTER WINDOW MODES
	blog:true,
	chatcenter_layout:1, // 0 - Chatrooms and Messages 1 - messages only
	show_online_panel:false,
	open_chatcenter_in_new_tab:false,
	allow_split_screen_mode:true,
	
	// CHATCENTER WINDOW SIZE
	window_width:853,
	window_height_offset:-160,
	chat_room_height_offset:90,
	
	// CHAT ROOM PARAMS
	skip_roomlist:false,
	default_room_index:0,
	disabled_rooms:[],
	disabled_room_msg:"You must be a member to enter this room.",
	hidden_rooms:[],
	room_message_limit:300,
	min_room_messages:50,
	max_chat_size:2000,
	
	// CHATBOX
	chatbox:{
		enabled:true,
		mode:0, // 0 - sitewide, 1 - page discussion
		require_tag:false,
		embed:{
			tag_id:"comments",
			before:"true"
		},
		layout:{
			mode:2, // 0 - horizontal, 1 -vertical, 2 - autodetect
			auto_detect_width_transition:570
		},
		width:{
			desktop:980, //min 580
			tablet:590,
			mobile:290
		},
		height:{ //min 390
			desktop:390,
			tablet:450,
			mobile:450 
		},
		resize:{
			enable:true,
			increment:50,
			min_height:400,
			max_height:700
		},
		css:{
			loading:"font-family:arial;font-size:14px;font-weight:bold;color:lightblue",
			container_spacing:"margin-left:auto;margin-right:auto;margin-bottom:10px;margin-bottom:10px;",
			container_css:"background-color:#fff;border: 1px solid #eee;border-radius:4px;-webkit-box-shadow:0px 0px 4px 2px rgba(0,0,0,0.2);box-shadow:0px 0px 4px 2px rgba(0,0,0,0.2);",
			horizontal_alignment:11, 
			padding:"10px 10px",
			label:"font-size:16px;font-family:arial;font-weight:bold;color:#a3b3ff;"
		},
		label_txt:"Chat",
		loading_txt:"Chat Loading...Please Wait...",
		sitewide:{
			full_page:true,
			topic:"",
			desc:"",
			button_width:140,
			button_text:"Chatbox",
			title_text:"Live Comments",
			chatroom_text:"Chat:",
			connected_text:"Connected: ",
			viewing_text:"Viewing"
		},
		page_discussion:{
			button_width:140,
			button_text:"This Topic",
			title_text:"Live Comments",
			chatroom_text:"Chat about this page:",
			connected_text:"Viewing this page: ",
			viewing_text:"Active",
			use_querystring_in_url:true,
			use_page_title:true,
			lock_all_discussions:false
		},
		dialog_width:500,
		hide_chatroom_info:false,
		hide_eye:false
	},
	
	// FULL PAGE
	full_page_url:"",
	
	// ENVIRONMENTAL
	default_on:true,
	set_tab:true,
	no_chat_history:false,
	showTyping:true,
	display_timestamp:false,
	sounds_on:true,
	room_alerts_on:false,
	mobile_regex:/iphone|ipod|android|mobile|blackberry|bb10|mini|windows\sce|palm/i,
	tablet_regex:/ipad|tablet/i,
	fixed_support_regex:/cpu os [6-9]|iphone os [6-9]|android [4-9]|bb10|(?=.*blackberry)(?=.*version\/[7-9])/i,
	
	// ---PROMO
	
	// Prompt user to sign in to chat
	prompt_user:true,
		
	// Prompt guests to enter a nickname
	prompt_nickname:true,
	
	// ---END PROMO
	
	// ALLOW FACEBOOK LOGINS
	facebook_connect:true,
	fb_connection_url:"http://chat.fastcatsoftware.com:8080",
	
	// COUNTRY FLAGS
	show_country_flags:true,
	// get your free api key from http://ipinfodb.com/register.php
	ipinfodb_api_key:"",
	
	// PROFILES
	import_profiles:"",
	
	// IMAGES AVATARS SMILEYS
	upload_images_enabled:true,
	allow_crossdomain_images:true,
	current_domain:"fastcatsoftware.com", // set this to your domain
	import_default_avatar:true,
	script_type:"php",
	avatars_dir:"",
	images_dir:"",
	smileys_dir:"",
	avatar_sz:18,
	change_avatar:true,
	show_avatar_in_chats:true,
	
	// GAMES
	allow_games:true,
	// GAME ID'S should match game names in language file
	game_ids:[2,1,256,325,86,6,254,1822,607,1723,225,4,1607,102,327,274,3,26,6346,562,1840,557,29,255,272,2227,5286,567,15,1658,64,3177,330,329,273,11,1661,12],
	
	// SMILEYS
	/* 
	 * IMPORTANT-READ THIS: In smileys, You 
	 * must escape any single quotes with three backslashes.
	 * ie, a wink emoticon '-) must be encoded as \\\'-)
	 */
	
	smiley_list:[['smile.png', 'smile','32'],['bigsmile.png', 'bigsmile','32'],['cry.png', 'cry','32'],['wink.png', 'wink','32'],['nod.gif', 'nod','50'],['pout.gif', 'pout','50'],['whap.gif', 'whap','50'],['sry.gif', 'sorry','50'],['fny.gif', 'funny','50'],['ow.gif', 'ouch','50'],['trb.gif', 'trembling','50'],['jp.gif', 'jackpot','50'],['pumping_iron.gif', 'pumping_iron','50'],['bdm.gif', 'badmonkey','50'],['cough.gif', 'cough','50'],['proud.gif', 'proud','50'],['bear.gif', 'clappingbear','50'],['sm18.gif', '-)','15'],['sm2.gif','angel','24'],
	             ['sm3.gif','alien','15'],['sm4.gif','dracula','20'],['sm5.gif','devil','16'],['sm6.gif','bashfull','18'],['sm7.gif','bug','26'],['sm8.gif','chicken','23'],['sm9.gif','cool','23'],['sm10.gif','rockon','28'],['sm11.gif','hat','22'],['sm12.gif','runningdog','36'],['sm13.gif','reindeer','30'],['sm14.gif','frog','15'],['sm15.gif','pig','18'],['sm16.gif','reddevil','21'],['sm17.gif','whip','28'],['sm1.gif','hmmm','18']],
	smiley_columns:4,
	
	// Depricated: for older versions
	smileys:[['sm1.gif', ':-)','18'],['sm2.gif',':-)0','24'],['sm3.gif',':-)1','15'],['sm4.gif',':-)2','20'],['sm5.gif',':-)3','16'],['sm6.gif',':-)4','18'],['sm7.gif',':-)5','26'],['sm8.gif',':-)6','23'],['sm9.gif',':-)7','23'],['sm10.gif',':-)8','28'],['sm11.gif',':-)9','22'],['sm12.gif',':-)10','36'],['sm13.gif',':-)11','30'],['sm14.gif',':-)12','15'],['sm15.gif',':-)13','18'],['sm16.gif',':-)14','21'],['sm17.gif',':-)15','28'],['sm18.gif',':-)16','15']],
	
	// VIDEO
	video_enabled:true,
	video_access_level:3, // 0 none , 1 private only , public only , 3 both public and private
	max_video_streams:100,
	capture_width:160,
	capture_height:120,
	hd_capture_width:320,
	hd_capture_height:240,
	fps:8,
	quality:95,
	show_a_v_icon:true,
	
	// TRANSLATOR
	trans_enabled:true,
	trans_default_on:false,
	trans_default_language_code:"en",
	trans_url:"http://api.microsofttranslator.com/V2/Ajax.svc/",
    trans_appid:"4690BC25149C7E7E98E4A356B8C807D6A7132424",
    
    // TRANSLITERATION
    transliteration_enabled:true,
	
	// COOKIES
	cookie_expires:1, // 0 - end of session 1 - never
	user_cookie:"fc_UID", 
	session_cookie:"fc_ChatToken",
	mod_cookie:"fc_ChatToken",
	data_cookie:"fc_data",
	
	// MISC
	allow_links:true,
	help_link:"http://www.fastcatsoftware.com/chat/manual2.2.html",
	show_help_button:true,
	show_user_list:true,
	show_settings_on_open:false,
	pin_windows:true,
	pinned_by_default:true,
	preload_images:false,
	noshow:false,
	flashEnabled:"test",
	websocketEnabled:"test",
	retry:[5,3000,1], //connection retry
	userbox_mode:0,
	zindex_base:20477,
	domain:null,
	dir: window["fc_chat_path"] || "/FCChat/",
	alt_dir: "",
	
	// LOADING PHRASES
	load_standalone_bsc:(!window["jGo"]||jGo.scripts.loadState('jGo.DefaultWindow.init.min.js') == 'not.loaded'?"<script type='text/javascript' src='" + (window["fc_chat_path"] || "/FCChat/") + "jGo/js/jGo.DefaultWindow.init.min.js'></" +
		"script>":"") +
	    "<script>" +
			"(function() {" +
				"var s = document.createElement('script');" +
	  			"s.src = '" + (window["fc_chat_path"] || "/FCChat/") + (window['fcchat_debug_main']?"dev/":"") + "js/fcchat.standalone.min.js';" +
	  			"s.async = true;" +
	  			"var e = document.getElementsByTagName('script')[0];" +
	  			"e.parentNode.insertBefore(s, e);" +
			"})();</" +
		"script>",
	load_integrated_bsc:"",
	load_standalone:(!window["jGo"]||jGo.scripts.loadState('jGo.DefaultWindow.init.min.js') == 'not.loaded'?"<script type='text/javascript' src='" + (window["fc_chat_path"] || "/FCChat/") + "jGo/js/jGo.DefaultWindow.init.min.js'></" +
		"script>":"") +
		"<script type='text/javascript' src='" + (window["fc_chat_path"] || "/FCChat/") + "js/fcchat.standalone.min.js'></" +
		"script>",
	load_integrated:""
};
